package com.chen.oopextends4;

public class Test {
    public static void main(String[] args) {
        Manager m = new Manager( "1", "张三", 5000, 5000);
        System.out.println(m.getId() + m.getName() + m.getSalary() + m.getBonus());
        m.work();
        m.eat();

        Cook c = new Cook();
        c.setId("2");
        c.setName("李四");
        c.setSalary(6000);

        System.out.println(c.getId() + c.getName() + c.getSalary());

        c.work();
        c.eat();
    }

}
